import {
  ResourceLoader
} from "../base/resourceLoader";
import Sprite from "../base/sprite";

const WIDTH = 120;
const HEIGHT = 120;

export class Enemy extends Sprite {
  constructor() {
    let img = ResourceLoader.getInstance().getImage("enemy");
    let randX = Math.floor(Math.random() * window.innerWidth - WIDTH);
    let randY = -HEIGHT - 20;
    super(img, randX, randY, WIDTH, HEIGHT, true);
  }
}